﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>@ViewData["Title"] - OpenPms</title>
    <link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.min.css" />
    <link rel="stylesheet" href="~/css/site.css" asp-append-version="true" />
    <link rel="stylesheet" href="~/OpenPms.styles.css" asp-append-version="true" />
</head>
<body>
    
        
    <main role="main" class="container-fluid pb-3">
        <no-show>
            <h4>@ViewData["Title"]</h4>
            <hr />
        </no-show>
        @RenderBody()
    </main>

    <footer class="border-top footer text-muted">
        <div class="container-fluid">
            &copy; 2023 - OpenPms <a asp-page="/MForce">手机版</a>
        </div>
    </footer>

    <script src="~/lib/jquery/dist/jquery.min.js"></script>
    <script src="~/lib/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
    <script src="~/js/site.js" asp-append-version="true"></script>

    @await RenderSectionAsync("Scripts", required: false)
    <script>

        $(function () {
            var p = "@(Model.Request.RouteValues["Page"].ToString().Split('/')[1])";
            if (p == "User")
                p = "Setup";

            var id = $("#Li" + p);
            if (!id.length)
                id = $("#LiHome")
            id.addClass("active");

        });
    </script>

</body>
</html>